package com.ph.irp.base.accountbook.dao;

import java.util.List;

import com.ph.irp.model.PBaseAccountbook;

public interface PBaseAccountbookDAO {
	
	
	
	public List<PBaseAccountbook> getAllAccountbooks()throws Throwable ;
	
	public PBaseAccountbook getAccountbookById(int id)throws Throwable;
	
	public List<PBaseAccountbook> getAccountbookByNameAndCode(String accountbookName,String accountbookCode)throws Throwable;
		
	public List<PBaseAccountbook> getAccountbookByName(String accountbookName )throws Throwable;
	
	public List<PBaseAccountbook> getAccountbookByCode(String accountbookCode)throws Throwable;
	
	public int deleteAccountbookById(Integer accountbookId)throws Throwable;
	
	public int addAccountbook(PBaseAccountbook pbaseAccountbook)throws Throwable ;
	
	public int update(PBaseAccountbook pbaseAccountbook)throws Throwable;
	
}
